package com.bean;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.util.Domain;

@Document(collection="imageContext")
public class ImageContext {

	@Id
	private String id;
	private String rating;
	private User users;
	private int zanNum;
	private int zhuanfaNum;
	private String publishDate;
	private String[]tag;
	private String img;
	private int commentsNum;
	private int top;
	private String type;
	private String title;
	private String []imgs;
	private int collectNum2;
	private int hostness;
	private String isZan;
	public class User{
		private String username;
		@Id
		private String id;
		private String usrImg;
		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getUsrImg() {
			return usrImg;
		}
		public void setUsrImg(String usrImg) {
			this.usrImg = usrImg;
		}
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getRating() {
		return rating;
	}
	public void setRating(String rating) {
		this.rating = rating;
	}
	public User getUsers() {
		return users;
	}
	public void setUsers(User users) {
		this.users = users;
	}
	public int getZanNum() {
		return zanNum;
	}
	public void setZanNum(int zanNum) {
		this.zanNum = zanNum;
	}
	public int getZhuanfaNum() {
		return zhuanfaNum;
	}
	public void setZhuanfaNum(int zhuanfaNum) {
		this.zhuanfaNum = zhuanfaNum;
	}
	public String getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}
	public String[] getTag() {
		return tag;
	}
	public void setTag(String[] tag) {
		this.tag = tag;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public int getCommentsNum() {
		return commentsNum;
	}
	public void setCommentsNum(int commentsNum) {
		this.commentsNum = commentsNum;
	}
	public int getTop() {
		return top;
	}
	public void setTop(int top) {
		this.top = top;
	}
	public String getType() {
		return Domain.image;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String[] getImgs() {
		return imgs;
	}
	public void setImgs(String[] imgs) {
		this.imgs = imgs;
	}
	public int getCollectNum2() {
		return collectNum2;
	}
	public void setCollectNum2(int collectNum2) {
		this.collectNum2 = collectNum2;
	}
	public int getHostness() {
		return hostness;
	}
	public void setHostness(int hostness) {
		this.hostness = hostness;
	}
	public String getIsZan() {
		return isZan;
	}
	public void setIsZan(String isZan) {
		this.isZan = isZan;
	}
	
}
